I've received a CPAN tester's report, saying:
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.00505 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/pod.....skipped
all skipped: Test::Pod 1.00 required for testing POD
t/test....Use of reserved word "our" is deprecated at /var/tmp/CPAN-build/DBIx-Admin-BackupRestore-1.11-Z51uFk/blib/lib/DBIx/Admin/BackupRestore.pm line 39.
Array found where operator expected
etc, etc.
Note the Perl used: 5.00505.
Shouldn't having the above require at the top of the module stopped that version of Perl trying to compile the file?
And what's the best way to preempt this problem?
Yours, confused.
To catch that correctly, you should have the 'use perl' part in your Makefile.PL/Build.PL build file. The 'use part' in a module will throw errors as you saw, which will result in a CPAN Testers FAIL. Adding it to your build file, or specifically adding the perl version in your prerequisites, will stop any testing without any FAIL report being produced. It should produce an NA report, implying that the distribution is not meant to run with that version of Perl, which is what you intended
Re:In the build process
Ron Savage on 2008-07-06T23:41:23
OK. $many x $thanx; That's what I guessed was missing.